home *** CD-ROM | disk | FTP | other *** search
/ Developer Helper 1: Phil & Dave's Excellent CD / Excellent CD HFS.raw / Moof / Goodies / MPW Goodies / Interfaces / CIncludes / DeskBus.h < prev    next >
Text File  |  1988-11-30  |  2KB  |  75 lines

  1. /************************************************************
  2.  
  3. Created: Tuesday, October 4, 1988 at 5:31 PM
  4.     DeskBus.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.     Copyright Apple Computer, Inc.  1987 -1988
  9.     All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __DESKBUS__
  15. #define __DESKBUS__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. typedef char ADBAddress;
  22.  
  23.  
  24. struct ADBOpBlock {
  25.     Ptr dataBuffPtr;        /*address of data buffer*/
  26.     Ptr opServiceRtPtr;     /*service routine pointer*/
  27.     Ptr opDataAreaPtr;      /*optional data area address*/
  28. };
  29.  
  30. #ifndef __cplusplus
  31. typedef struct ADBOpBlock ADBOpBlock;
  32. #endif
  33.  
  34. typedef ADBOpBlock *ADBOpBPtr;
  35.  
  36. struct ADBDataBlock {
  37.     char devType;           /*device type*/
  38.     char origADBAddr;       /*original ADB Address*/
  39.     Ptr dbServiceRtPtr;     /*service routine pointer*/
  40.     Ptr dbDataAreaAddr;     /*data area address*/
  41. };
  42.  
  43. #ifndef __cplusplus
  44. typedef struct ADBDataBlock ADBDataBlock;
  45. #endif
  46.  
  47. typedef ADBDataBlock *ADBDBlkPtr;
  48.  
  49. struct ADBSetInfoBlock {
  50.     Ptr siServiceRtPtr;     /*service routine pointer*/
  51.     Ptr siDataAreaAddr;     /*data area address*/
  52. };
  53.  
  54. #ifndef __cplusplus
  55. typedef struct ADBSetInfoBlock ADBSetInfoBlock;
  56. #endif
  57.  
  58. typedef ADBSetInfoBlock *ADBSInfoPtr;
  59.  
  60. #ifdef __safe_link
  61. extern "C" {
  62. #endif
  63. pascal void ADBReInit(void)
  64.     = 0xA07B; 
  65. pascal OSErr ADBOp(Ptr data,ProcPtr compRout,Ptr buffer,short commandNum); 
  66. pascal short CountADBs(void); 
  67. pascal ADBAddress GetIndADB(ADBDataBlock *info,short devTableIndex); 
  68. pascal OSErr GetADBInfo(ADBDataBlock *info,ADBAddress adbAddr); 
  69. pascal OSErr SetADBInfo(ADBSetInfoBlock *info,ADBAddress adbAddr); 
  70. #ifdef __safe_link
  71. }
  72. #endif
  73.  
  74. #endif
  75.